package com.zhongdone.pattern.structural.adapter.logindemo2;

import com.zhongdone.pattern.structural.adapter.logindemo1.PassportService;
import com.zhongdone.pattern.structural.adapter.logindemo1.ResultMsg;

public abstract class AbstractAdapter extends PassportService implements ILoginAdapter {

    public ResultMsg loginForRegist(String userName, String password) {
        if(null == password){
            password = "THIRD_EMPTY";
        }
        super.regist(userName, password);
        return super.login(userName,password);
    }

}
